package com.nhimeye.domain;

import javax.persistence.Lob;
import javax.persistence.ManyToOne;
import org.springframework.roo.addon.equals.RooEquals;
import org.springframework.roo.addon.javabean.RooJavaBean;
import org.springframework.roo.addon.jpa.entity.RooJpaEntity;
import org.springframework.roo.addon.jsf.model.RooUploadedFile;
import org.springframework.roo.addon.serializable.RooSerializable;
import org.springframework.roo.addon.tostring.RooToString;

@RooJavaBean
@RooToString
@RooJpaEntity
@RooEquals
@RooSerializable
public class FieldValue {

    @RooUploadedFile(contentType = "text/html")
    @Lob
    private byte[] content;

    @ManyToOne
    private Field field;

    @ManyToOne
    private ContentVersion contentVersion;

    @ManyToOne
    private FileVersion fileVersion;
}
